<template>
    <h1 style="color:red">我是Test组件</h1>
    <h1>x坐标：{{point.x}}</h1>
    <h1>y坐标：{{point.y}}</h1>
</template>

<script>
import usePoint from '../hooks/usePoint'
export default {
    name:'Test',
    setup(){
        let point = usePoint()

        return{
            point
        }
    }
}
</script>